<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.dialog</title>
<link type="text/css" rel="stylesheet" href="../css/admin.css" />
<link type="text/css" rel="stylesheet" href="../css/item_show.css" />
<script type="text/javascript" src="../../1st.js"></script>
<script type="text/javascript" src="../../1st.highlight.js"></script>
</head>
<body id="split">
<div id="content">
	<div rel="F.param">
		<h2><span>返回值:</span>F.dialog</h2>
					<h3>概述 : 对话框</h3>
									<h3>语法1：F.dialog(ops)</h3>
						<table class="args">
				<!--caption>参数列表：(1)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
									<tr><td><strong>ops</strong></td><td>Object</td><td>参数配置</td></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td></td><td></td></tr>
			</table>
					<h3>语法2：ops参数配置</h3>
						<table class="args">
				<!--caption>参数列表：(12)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
									<tr><td><strong>title</strong></td><td>String</td><td>标题HTML</td></tr>
									<tr><td><strong>content</strong></td><td>String</td><td>内容HTML</td></tr>
									<tr><td><strong>width</strong></td><td>Number</td><td>宽度,默认宽度自适应</td></tr>
									<tr><td><strong>height</strong></td><td>Number</td><td>高度,默认高度自适应</td></tr>
									<tr><td><strong>left</strong></td><td>Number</td><td>X坐标,默认居中</td></tr>
									<tr><td><strong>top</strong></td><td>Number</td><td>Y坐标,默认居中</td></tr>
									<tr><td><strong>yes</strong></td><td>Function,Number</td><td>确定按钮</td></tr>
									<tr><td><strong>no</strong></td><td>Function,Number</td><td>取消按钮</td></tr>
									<tr><td><strong>url</strong></td><td>String</td><td>URL地址</td></tr>
									<tr><td><strong>isdrag</strong></td><td>Number</td><td>是否拖动，0不拖,1拖(默认)</td></tr>
									<tr><td><strong>zIndex</strong></td><td>Number</td><td>层次</td></tr>
									<tr><td><strong>init</strong></td><td>Function</td><td>初始化事件</td></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td>fdom</td><td></td></tr>
			</table>
					<h3>语法3：.trigger(obj)</h3>
							<div>描述：指定触发对象</div>
						<table class="args">
				<!--caption>参数列表：(1)</caption-->
				<tr><th>参数名称</th><th>类型</th><th>描述</th></tr>
									<tr><td><strong>obj</strong></td><td>ID,Node,fdom</td><td>触发对象</td></tr>
								<tr><td colspan="3">&nbsp;</td></tr>
				<tr><td>返回值</td><td></td><td></td></tr>
			</table>
				<div class="example">
			<h3>示例 : </h3>
							<h5 xmlns="">CSS代码:</h5>
				<pre xmlns=""><code id="cssbox"></code></pre>
						
							<h5 xmlns="">HTML代码:</h5>
				<pre xmlns=""><code id="htmlbox"></code></pre>
									
				<h5 xmlns="">JS代码:</h5>
				<pre xmlns=""><code id="jsbox"></code></pre>
								</div>
		<div style="text-align:right">
			
					
				<button onclick="window.open('../codepages/75.html');">运行代码</button>
						
		</div><br/>	
		<div>
			<h3>同类参考 :</h3>
			<div>
							<span><a href='177.html'>F().anime</a></span>&#12288;|&#12288;							<span><a href='48.html'>F().drag</a></span>&#12288;|&#12288;							<span><a href='51.html'>F().slides</a></span>&#12288;|&#12288;							<span><a href='74.html'>F.pagination</a></span>&#12288;|&#12288;							<span><a href='80.html'>F().tree</a></span>&#12288;|&#12288;							<span><a href='50.html'>F.menu</a></span>&#12288;|&#12288;							<span><a href='32.html'>F.datePicker</a></span>&#12288;|&#12288;							<span><a href='28.html'>F.colorPicker</a></span>&#12288;|&#12288;							<span><a href='82.html'>F.canvas</a></span>						</div>
		</div>
	</div>
</div><br />

<textarea id="css" style="display:none;">*{margin:0; padding:0}
html,body{width:100%; height:100%;}</textarea>
<textarea id="html" style="display:none;"><input type="button" id="btn_open" value="打开窗口" />
<div id="dialog_box" class="dialog"></div>

<select style="position:absolute;right:50px;bottom:50px;">
    <option>1111111111111</option>
    <option>1111111111111</option>
    <option>1111111111111</option>
</select></textarea>
<textarea id="js" style="display:none;">F.dialog({
	title : "温馨提示",
	//content : '您有1封消息<br/><br/><a href="http://www.baidu.com" target="_blank">今天请我吃饭哈</a>',
	url : "http://www.baidu.com",
	width : 500,
	height : 300,
	yes:function(){alert("ok");return true;},
	no:1
}).trigger("btn_open");</textarea>
<textarea id="result" style="display:none;"></textarea>


<script type="text/javascript">
var css = F('css').val();
var html = F('html').val();		
var js = F('js').val();
var result = F('result').val();
css && F('cssbox').highlight(css, "css");
html && F('htmlbox').highlight(html, "html");
js && F('jsbox').highlight(js, "js");
result && F('resultbox').highlight(result,"js");
</script>

</body>
</html>